/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.mail.repository.entity;

import com.gitee.peigenlpy.actable.annotation.Column;
import com.gitee.peigenlpy.actable.annotation.Table;
import com.gitee.peigenlpy.actable.annotation.Unique;
import com.gitee.peigenlpy.actable.constants.MySqlCharsetConstant;
import com.gitee.peigenlpy.actable.constants.MySqlEngineConstant;
import com.gitee.peigenlpy.actable.constants.MySqlTypeConstant;
import info.peigen.hotpot.component.data.repository.beetlsql.entity.AbstractCreateTimeEntity;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

/**
 * <b>(MailTemplateEntity)</b>
 * 邮件模版表
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/11/17
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
@Table(name = "mail_template", comment = "邮件模版表", charset = MySqlCharsetConstant.UTF8MB4, engine = MySqlEngineConstant.InnoDB)
@org.beetl.sql.annotation.entity.Table(name = "mail_template")
public class MailTemplateEntity extends AbstractCreateTimeEntity {
    @Column(name = "template_id", type = MySqlTypeConstant.VARCHAR, length = 30, isNull = false, comment = "templateId")
    @Unique(value = "templateId", columns = "template_id")
    @org.beetl.sql.annotation.entity.Column("template_id")
    String templateId;
    @Column(name = "context", type = MySqlTypeConstant.VARCHAR, length = 1500, comment = "内容")
    @org.beetl.sql.annotation.entity.Column("context")
    String context;
}